package test.no3;

public class AnonymousClass {
	public static void
	main(String[] args) {
		Teacher teacher=new Teacher();
		Student student=new Student() {
			@Override
			void speak() {
				System.out.println("I am not doing anything");
			}
		};
		teacher.look(student);
	}
}
class Teacher{
	void look(Student student){
		System.out.println("What are you doing");
		student.speak();
	}
}
abstract class Student{
	abstract void speak();
}